package cn.daneijiaoyuarrys;
import java.util.Arrays;
/**
 * @author SWJ
 * @create 2021-06-05 10:02
 * @date 2021/6/5 0005-10:02
 */
public class Test1 {
    public static void main(String[] args) {
        int i=1;
        Method1(i);
        System.out.println("main"+i++);
        System.out.println(i);
    }

    private static void Method1(int m) {
        int []a={1,2,3,4,5};
    for (int i=0;i<a.length;i++){
        a[i]=a[i]+1;//对a数组每个元素加一
    }
        System.out.println(Arrays.toString(a));
        System.out.println(m);
    }
}
